<?php

$tk->page->request = 'json';

define('__PHPROOT__', 'php/');
include(__PHPROOT__.'classes/elfinder/connector.php');

$data['json'] = json_encode($connector->output,true);